﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.EventSystems;
using UnityEngine.UI;

public class ButtonScale : MonoBehaviour, IPointerDownHandler, IPointerUpHandler
{
    public Vector3 From = Vector3.one;
    public Vector3 To = Vector3.one * 1.1f;
	// Use this for initialization
	

    public void OnPointerDown(PointerEventData data)
    {
        this.transform.localScale = this.To;
    }
    public void OnPointerUp(PointerEventData data)
    {
        this.transform.localScale = this.From;
    }
}
